<?php
use think\facade\Route;

Route::resource('todo', 'todo.Index')
    ->only(['index','read', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);

Route::resource('todo/status', 'todo.Status')
    ->only(['index', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);

Route::resource('todo/priority', 'todo.Priority')
    ->only(['index', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);